#ifndef _ESP8266_H_
#define _ESP8266_H_
#include "stm32f4xx_hal.h"
void esp8266_init(void);
uint8_t esp8266_response(const char*msg,uint32_t timeout);
void esp8266_setbaud(uint32_t baud);
uint8_t esp8266_link_wifi(const char*name,const char*password);
void esp8266_Publish(const char* topic,const char*content);
void esp8266_send(const char* buffer);



uint8_t esp8266_connect_MQTT(const char*ip,int port,const char* user,const char* password);
void esp8266_Publish(const char* topic,const char*content);
uint8_t  esp8266_subscribe(const char* topic);
void clearbuffer(void);
#endif



